<?php

namespace api\user\controller;

class AdminValidateLogController extends \Aaa\AdminController {

    protected function init() {
        $this->baseField = [
            [
                'field' => 'id',
                'name' => 'ID',
            ],
            [
                'field' => 'user_id',
                'name' => '用户',
            ],
            [
                'field' => 'type',
                'name' => '认证类型',
                'type' => 'select',
                'options' => [
                    ['name' => '银行卡认证', 'value' => 'bank'],
                ],
            ],
            [
                'field' => 'create_time',
                'name' => '请求时间',
                'type' => 'time',
            ],
            [
                'field' => 'res',
                'name' => '返回数据',
            ],
        ];
    }

    protected function beforeIndex() {
        $this->actionField = ['id', 'user_id', 'type', 'create_time', 'res',];
        $this->searchField = [
            'common' => [
                'id' => 'accurate',
                'user_id' => 'accurate',
                'type' => 'accurate',
                'res' => 'fuzzy',
            ],
            'time' => ['create_time'],
        ];
    }

    protected function beforeAdd() {
        $this->actionField = ['user_id', 'type', 'create_time', 'res',];
    }

    protected function beforeEdit() {
        $this->actionField = ['user_id', 'type', 'create_time', 'res',];
    }


}